package com.lxl.starter;

/**
 * 2、功能实现类 / 服务类 <br>
 * 实现功能：打印传入的name值和配置的属性值
 */
public class HelloService {
    HelloProperties helloProperties;

    public String sayHello(String name) {
        return "Hello " + name + "，" + helloProperties.getSuffix();
    }

    public HelloProperties getHelloProperties() {
        return helloProperties;
    }

    public void setHelloProperties(HelloProperties helloProperties) {
        this.helloProperties = helloProperties;
    }
}
